package 创建者模式.原型模式.demo2;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/3/4 12:25
 */

public class CitationTest {
    public static void main(String[] args) throws CloneNotSupportedException {
        Citation citation = new Citation();
        citation.setName("卢本伟");
        Citation clone = citation.clone();
        System.out.println(clone == citation);
        clone.setName("pdd");
        citation.show();
        clone.show();
    }
}
